home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16.lha / Python-1.6 / Lib / Python1.6 / encodings / aliases.py < prev    next >
Encoding:
Python Source  |  2000-04-06  |  1.3 KB  |  61 lines

  1. """ Encoding Aliases Support
  2.  
  3.     This module is used by the encodings package search function to
  4.     map encodings names to module names.
  5.  
  6.     Note that the search function converts the encoding names to lower
  7.     case and replaces hyphens with underscores *before* performing the
  8.     lookup.
  9.  
  10. """
  11. aliases = {
  12.  
  13.     # Latin-1
  14.     'latin': 'latin_1',
  15.     'latin1': 'latin_1',
  16.     
  17.     # UTF-8
  18.     'utf': 'utf_8',
  19.     'utf8': 'utf_8',
  20.     'u8': 'utf_8',
  21.     
  22.     # UTF-16
  23.     'utf16': 'utf_16',
  24.     'u16': 'utf_16',
  25.     'utf_16be': 'utf_16_be',
  26.     'utf_16le': 'utf_16_le',
  27.     'unicodebigunmarked': 'utf_16_be',
  28.     'unicodelittleunmarked': 'utf_16_le',
  29.  
  30.     # ASCII
  31.     'us_ascii': 'ascii',
  32.  
  33.     # ISO
  34.     'iso8859_1': 'latin_1',
  35.     'iso_8859_1': 'latin_1',
  36.     'iso_8859_10': 'iso8859_10',
  37.     'iso_8859_13': 'iso8859_13',
  38.     'iso_8859_14': 'iso8859_14',
  39.     'iso_8859_15': 'iso8859_15',
  40.     'iso_8859_2': 'iso8859_2',
  41.     'iso_8859_3': 'iso8859_3',
  42.     'iso_8859_4': 'iso8859_4',
  43.     'iso_8859_5': 'iso8859_5',
  44.     'iso_8859_6': 'iso8859_6',
  45.     'iso_8859_7': 'iso8859_7',
  46.     'iso_8859_8': 'iso8859_8',
  47.     'iso_8859_9': 'iso8859_9',
  48.  
  49.     # Mac
  50.     'maccentraleurope': 'mac_latin2',
  51.     'maccyrillic': 'mac_cyrillic',
  52.     'macgreek': 'mac_greek',
  53.     'maciceland': 'mac_iceland',
  54.     'macroman': 'mac_roman',
  55.     'macturkish': 'mac_turkish',
  56.  
  57.     # MBCS
  58.     'dbcs': 'mbcs',
  59.  
  60. }
  61.